<template>
  <div id="show-item">
    <h1>5555555555555555</h1>
    <ul>
      <li v-for="item in items">{{ item.name }}</li>
    </ul>
  </div>
</template>

<script type="text/ecmascript-6">
    var data;
    export default {
      name: 'shop_show',
      data () {
        return {
          items: []
        }
      },
      mounted: function () {
          // GET /someUrl
          this.$axios.get('http://127.0.0.1:9100/get_items').then(response => {
          data = JSON.parse(response.bodyText);
          this.items = data['items']
          console.log(this.items)
          console.log(typeof this.items)
        }, response => {
          // error callback
          console.log(response.statusText)
        });
      }
    }
</script>

<style>

</style>
